package com.ruoyi.recipe.domain;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 文章对象 recipe_article
 * 
 * @author ruoyi
 * @date 2025-02-14
 */
public class RecipeArticle extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 文章ID */
    private Long articleId;

    /** 标题 */
    @Excel(name = "标题")
    private String articleTitle;

    /** 图片 */
    @Excel(name = "图片")
    private String articlePic;

    /** 内容 */
    @Excel(name = "内容")
    private String articleContent;

    /** 作者 */
    @Excel(name = "作者")
    private String author;

    /** 浏览量 */
    @Excel(name = "浏览量")
    private Long viewsCount;

    /** 点赞数 */
    @Excel(name = "点赞数")
    private Long likesCount;

    /** 文章状态（0正常 1停用） */
    @Excel(name = "文章状态", readConverterExp = "0=正常,1=停用")
    private String status;

    public void setArticleId(Long articleId) 
    {
        this.articleId = articleId;
    }

    public Long getArticleId() 
    {
        return articleId;
    }

    public void setArticleTitle(String articleTitle) 
    {
        this.articleTitle = articleTitle;
    }

    public String getArticleTitle() 
    {
        return articleTitle;
    }

    public String getArticlePic()
    {
        return articlePic;
    }

    public void setArticlePic(String articlePic)
    {
        this.articlePic = articlePic;
    }

    public void setArticleContent(String articleContent) 
    {
        this.articleContent = articleContent;
    }

    public String getArticleContent() 
    {
        return articleContent;
    }

    public void setAuthor(String author) 
    {
        this.author = author;
    }

    public String getAuthor() 
    {
        return author;
    }

    public void setViewsCount(Long viewsCount) 
    {
        this.viewsCount = viewsCount;
    }

    public Long getViewsCount() 
    {
        return viewsCount;
    }

    public void setLikesCount(Long likesCount) 
    {
        this.likesCount = likesCount;
    }

    public Long getLikesCount() 
    {
        return likesCount;
    }

    public void setStatus(String status) 
    {
        this.status = status;
    }

    public String getStatus() 
    {
        return status;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("articleId", getArticleId())
            .append("articleTitle", getArticleTitle())
            .append("articlePic", getArticlePic())
            .append("articleContent", getArticleContent())
            .append("author", getAuthor())
            .append("viewsCount", getViewsCount())
            .append("likesCount", getLikesCount())
            .append("status", getStatus())
            .append("createBy", getCreateBy())
            .append("createTime", getCreateTime())
            .append("updateBy", getUpdateBy())
            .append("updateTime", getUpdateTime())
            .append("remark", getRemark())
            .toString();
    }
}
